<?php
namespace app\web\controller;

use support\Request;
use think\facade\Db;
use app\util\ReturnCode;

class System extends WebBase
{
    /**
     * 获取系统用户基本信息
     *
     * @param Request $request
     * @return void
     */
    public function get_system_user_info(Request $request)
    {
        $data = Db::name('system_user')->where('id', $this->user->id)->find();

        return success($data);
    }
    
}
